public class Student {
    private String id;
    private String name;
    private String gender;
    private Course course;

    public Student(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public void selectCourse(Course course) {
        this.course = course;
    }

    public void dropCourse() {
        this.course = null;
    }

    public Course getCourse() {
        return course;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}